package com.ujiuye.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/student")    //区别多个类之间有相同的请求路径
public class StudentController {
    //现在主流写法
    @RequestMapping(value = "/save",method = {RequestMethod.POST})
    public String html(){
        System.out.println("添加成功");
        return "main";
    }
}